// 封装房源列表页相关接口
import request from '@/utils/request'

// 获取列表页轮播图
export const getListBannerService = () => {
  return request({
    url: '/carousel-list',
    method: 'GET'
  })
}

// 获取房源列表信息
export const getPropertyListService = ({ type, pageSize, page }) => {
  return request({
    url: '/property/list',
    method: 'GET',
    params: {
      type,
      pageSize,
      page
    }
  })
}

// 搜索房源
export const searchPropertyService = (data) => {
  return request({
    url: '/property/search',
    method: 'GET',
    params: {
      data
    }
  })
}
